//
//  YFAlertHelper.h
//  SquashSpark
//
//  Created by Coollang on 2017/11/10.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <zhPopupController/zhPopupController.h>
#import "PopupViewController.h"

@interface YFAlertHelper : NSObject

#pragma mark - zhPopUp
/*
 * 0.5黑色蒙版
 * allowPan: 是否允许手势滑动退出
 * touchmaskDismiss: 是否允许点击蒙版退出弹窗
**/
+ (zhPopupController *)zhpresentEaseInOutAlertView:(UIView *)alertView allowPan:(BOOL)allowPan dismissTouchMask:(BOOL)touchmaskDismiss;

+ (zhPopupController *)zhPresentInView:(UIView *)view alertView:(UIView *)alertView maskType:(zhPopupMaskType)maskType slideStyle:(zhPopupSlideStyle)slideStyle allowPan:(BOOL)allowPan displayTime:(NSTimeInterval)dispalyTime;

#pragma mark - 系统自带弹框
+ (UIAlertController *)showAlertController:(UIViewController *)controller Title:(NSString *)title message:(NSString *)message cancelTitle:(NSString *)cancelTitle defalutTitle:(NSString *)defaultTitle cancelAction:(void(^)(UIAlertAction *action))cancelAction defalutAction:(void(^)(UIAlertAction *action))defalutAction;

+ (UIAlertController *)showTwoAlertController:(UIViewController *)controller Title:(NSString *)title message:(NSString *)message cancelTitle:(NSString *)cancelTitle defalutTitle:(NSString *)defaultTitle defaultBtnStyle:(UIAlertActionStyle)defaultBtnStyle cancelAction:(void(^)(UIAlertAction *action))cancelAction defalutAction:(void(^)(UIAlertAction *action))defalutAction;


+ (PopupViewController *)showPresentInView:(UIViewController *)parentViewController alertView:(UIView *)alertView withAlertViewFrame:(CGRect)alertViewFrame animationType:(DetailViewControllerPresentAnimationType)animationType tapMaskViewDismiss:(BOOL)tapMaskView;

@end
